package com.ruoyi.web.service;

import com.ruoyi.common.core.domain.entity.WebDocument;
import com.ruoyi.common.core.domain.entity.WebToken;
import com.ruoyi.web.dto.SealDto;

import java.util.List;

public interface IWebSignService {

    boolean addWebToken(WebToken webToken);

    List<String> findSealListByToken(String signToken);

    boolean addWebDocument(WebDocument webDocument);

    List<WebDocument> findWebDocument(String documentId,String approvalProcessNumber);

    boolean deleteWebDocument(WebDocument webDocument);

    byte[] webSign(SealDto seal, byte[] hashValue);

    boolean webDocumentVerifySM(byte[] bPlain, byte[] bCert,byte[] bSignVal);

    boolean webDocumentVerifyRSA(byte[] bPlain, byte[] bCert,byte[] bSignVal);

    boolean webCertVerify(byte[] bCert);

}
